using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
//ok

namespace WCFDicing.DataContracts
{
    /// <summary>
    /// klasa opisujaca wynik rzuconych kosci
    /// </summary>
    [DataContract( Namespace = "http://WCFDicing.DataContracts/2008/01", Name = "DicingResult" )]
    public partial class DicingResult
    {
        /// <summary>
        /// pierwsza kostka
        /// </summary>
        private System.Int32 Dice1Field;


        /// <summary>
        /// get i set pierwsza kostka
        /// </summary>
        [DataMember( IsRequired = false, Name = "Dice1", Order = 0 )]
        public System.Int32 Dice1
        {
            get { return Dice1Field; }
            set { Dice1Field = value; }
        }

        /// <summary>
        /// druga kostka
        /// </summary>
        private System.Int32 Dice2Field;

        /// <summary>
        /// get i set druga kostka
        /// </summary>
        [DataMember( IsRequired = false, Name = "Dice2", Order = 1 )]
        public System.Int32 Dice2
        {
            get { return Dice2Field; }
            set { Dice2Field = value; }
        }

        /// <summary>
        /// konstruktor domyslny
        /// </summary>
        public DicingResult() { }

        /// <summary>
        /// konstruktor z nadaniem wyrzuconych kostek
        /// </summary>
        /// <param name="first">pierwsza kostka</param>
        /// <param name="second">druga kostka</param>
        public DicingResult(int first, int second)
        {
            Dice1Field = first;
            Dice2Field = second;
        }

        /// <summary>
        /// konstruktor kopiujacy
        /// </summary>
        /// <param name="result">obiekt z ktorego kopiujemy</param>
        public DicingResult( DicingResult result )
        {
            this.Dice1Field = result.Dice1;
            this.Dice2Field = result.Dice2;
        }

    }
}
